#!/bin/bash

input_dir_tra=/home/yjy/dataset/Tongji-ROI-Mahdieh
output_dir_tra=/home/yjy/PycharmProjects/PalmROI/data/Datasets/Tongji

files=`ls "$input_dir_tra"`
for filename in ${files}; do
        person_id=`expr substr "$filename" 5 4`
        strB=LLL
        left=$(echo $filename | grep "${strB}")
        if [ "$left" != "" ]
        then
            echo "....................generating "$filename
            echo $filename" "$person_id >> $output_dir_tra/test_Mahdieh.txt
        fi
done